package queryfish.db.db4o;

import queryfish.db.db4o.Biology;
import queryfish.db.db4o.Culture_Tech;
import queryfish.db.db4o.General_Info;

public class WaterFish {

	private String fish_name;
	private General_Info general_information;
	private Biology biology;
	private Culture_Tech culture_technology;
	private String image;
	private String description;

	public WaterFish(String fish_name) {
		this.fish_name = fish_name;

		this.biology = null;
		this.culture_technology = null;
		this.general_information = null;
		this.image = null;
		this.description = null;
	}

	public void setDescription(String description) {
		this.description = description;
	}

	public String getDescription() {
		return description;
	}

	public void setImage(String image) {
		this.image = image ;
	}

	public String getImage() {
		return image ;
	}

	public General_Info getGeneral_information() {
		return general_information;
	}

	public Culture_Tech getCulture_technology() {
		return culture_technology;
	}

	public Biology getBiology() {
		return biology;
	}

	public void setBiology(Biology bilogy) {
		this.biology = bilogy;
	}

	public void setFish_name(String fish_name) {
		this.fish_name = fish_name;
	}

	public void setGeneral_information(General_Info general_information) {
		this.general_information = general_information;
	}

	public void setCulture_technology(Culture_Tech culture_technology) {
		this.culture_technology = culture_technology;
	}

	public String getFish_name() {
		return fish_name;
	}

	public String toString() {
		return fish_name + "\n" + image + "\n"  + biology  + "\n"
				 + general_information  + "\n" 
				+ culture_technology  + "\n" + description ;
	}
}


class Culture_Tech {

	private String aquarium; // thể tích bể
	private String feed_form; // hình thức nuôi
	private String moss_request; // yêu cầu hồ rong
	private String light_request; // yêu cầu ánh sáng
	private String water_filter_request; // yêu cầu lọc nước
	private String aeration_request; // yêu cầu sục khí
	private String kind_of_food; // loại thức ăn
	private String caring; // chăm sóc

	public Culture_Tech(String aquarium, String feed_form, String moss_request,
			String light_request, String water_filter_request,
			String aeration_request, String kind_of_food, String caring) {
		this.aquarium = aquarium;
		this.feed_form = feed_form;
		this.moss_request = moss_request;
		this.light_request = light_request;
		this.water_filter_request = water_filter_request;
		this.aeration_request = aeration_request;
		this.kind_of_food = kind_of_food;
		this.caring = caring;
	}

	public String getAquarium() {
		return aquarium;
	}

	public String getFeed_form() {
		return feed_form;
	}

	public String getMoss_request() {
		return moss_request;
	}

	public String getLight_request() {
		return light_request;
	}

	public String getWater_filter_request() {
		return water_filter_request;
	}

	public String getAeration_request() {
		return aeration_request;
	}

	public String getKind_of_food() {
		return kind_of_food;
	}

	public String getCaring() {
		return caring;
	}

	public String toString() {
		return aquarium + "/" + feed_form + "/" + moss_request + "/"
				+ light_request + "/" + water_filter_request + "/"
				+ aeration_request + "/" + kind_of_food + "/" + caring;

	}
}

class General_Info {

	private String science_name; // tên khoa học
	private String fish_set; // bộ cá
	private String fish_class; // họ cá
	private String kind_of_fish; // thuộc loài
	private String same_name;
	private String english_name; // danh sách các tên tiếng anh
	private String vietnamese_name; // danh sách các tên tiếng việt
	private String origination; // nguồn gốc cá

	public General_Info(String science_name, String fish_set,
			String fish_class, String kind_of_fish, String same_name,
			String english_name, String vietnamese_name, String origination) {
		this.science_name = science_name;
		this.fish_set = fish_set;
		this.fish_class = fish_class;
		this.kind_of_fish = kind_of_fish;
		this.same_name = same_name;
		this.english_name = english_name;
		this.vietnamese_name = vietnamese_name;
		this.origination = origination;
	}

	public String getScience_name() {
		return science_name;
	}

	public String getFish_set() {
		return fish_set;
	}

	public String getFish_class() {
		return fish_class;
	}

	public String getKind_of_fish() {
		return kind_of_fish;
	}

	public String getSame_name() {
		return same_name;
	}

	public String getEnglish_name() {
		return english_name;
	}

	public String getVietnamese_name() {
		return vietnamese_name;
	}

	public String getOrigination() {
		return origination;
	}

	public String toString() {

		return science_name + "/" + fish_set + "/" + fish_class + "/"
				+ kind_of_fish + "/" + same_name + "/" + english_name + "/"
				+ vietnamese_name + "/" + origination + "/";
	}
}

class Biology {

	private String distribution; // phân bố
	private String fish_long; // chiều dài cá
	private String water_temparature; // nhiệt độ nước
	private String dH; // độ cứng nước
	private String pH; // độ PH nước
	private String feeding; // tính ăn
	private String reproduction; // sinh sản
	private String water_field; // tầng nước sinh sống

	public Biology(String distribution, String fish_long,
			String water_temparature, String dH, String pH, String feeding,
			String reproduction, String water_field) {

		this.distribution = distribution;
		this.fish_long = fish_long;
		this.water_temparature = water_temparature;
		this.dH = dH;
		this.pH = pH;
		this.feeding = feeding;
		this.reproduction = reproduction;
		this.water_field = water_field;
	}

	public String getWater_temparature() {
		return water_temparature;
	}

	public String getdH() {
		return dH;
	}

	public String getpH() {
		return pH;
	}

	public String getFeeding() {
		return feeding;
	}

	public String getReproduction() {
		return reproduction;
	}

	public String getWater_field() {
		return water_field;
	}

	public String getDistribution() {
		
		return distribution;
	}

	public String getFish_long() {
		return fish_long;
	}

	public String toString() {
		return distribution + "/" + fish_long + "/" + water_temparature + "/"
				+ dH + "/" + pH + "/" + feeding + "/" + reproduction + "/"
				+ water_field + "/";

	}
}
